<?php

use yii\db\Migration;

class m171017_014546_alert_customer extends Migration
{
    public function safeUp()
    {
        $this->addColumn('{{%customer}}', 'remarks', $this->string(255) . ' not null default 0 comment \'用户备注\'');
    }

    public function safeDown()
    {
        $this->dropColumn('{{%customer}}', 'remarks');
    }

    /*
    // Use up()/down() to run migration code without a transaction.
    public function up()
    {


    }

    public function down()
    {
        echo "m171017_014546_alert_customer cannot be reverted.\n";

        return false;
    }
    */
}
